/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.equipment.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 设备监控Entity
 * @author unnamed
 * @version 2018-01-10
 */
public class EleMonitorParam extends DataEntity<EleMonitorParam> {
	
	private static final long serialVersionUID = 1L;
	private String title;		// title
	private String name;		// name
	private String threshold;		// threshold
	private String receiverType;		// receiver_type
	private String equipmentId;		// equipment_id
	private String isUsed;
	private Integer sort;
	
	public EleMonitorParam() {
		super();
	}

	public EleMonitorParam(String id){
		super(id);
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	@Length(min=0, max=255, message="title长度必须介于 0 和 255 之间")
	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}
	
	@Length(min=0, max=255, message="name长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String getThreshold() {
		return threshold;
	}

	public void setThreshold(String threshold) {
		this.threshold = threshold;
	}
	
	@Length(min=0, max=1, message="receiver_type长度必须介于 0 和 1 之间")
	public String getReceiverType() {
		return receiverType;
	}

	public void setReceiverType(String receiverType) {
		this.receiverType = receiverType;
	}
	
	@Length(min=0, max=255, message="equipment_id长度必须介于 0 和 255 之间")
	public String getEquipmentId() {
		return equipmentId;
	}

	public void setEquipmentId(String equipmentId) {
		this.equipmentId = equipmentId;
	}

	public String getIsUsed(){
		return isUsed;
	}

	public void setIsUsed(String isUsed){
		this.isUsed = isUsed;
	}
}